Python Machine Learning Scatter Plot code